Posts

Showing posts from October, 2026

Azure App Service with Autoscaling deploy with Terraform

Image
Hey DevOps SRE engineers!! Beginning Learning New concepts in Azure Cloud  Prerequisites:    Terraform 1.5+, Azure CLI, and an Azure subscription with permission to create these resources. Sign in and select the intended subscription before applying it. Modularization in Terraform  Define a dedicated folder 'modules', place a child dir as 'app_service' main.tf in the modules/app_service folder resource "random_string" "suffix" { length = 6 lower = true upper = false numeric = true special = false } locals { resource_suffix = coalesce(var.resource_suffix, random_string.suffix.result) } resource "azurerm_resource_group" "app" { name = var.resource_group_name location = var.location } resource "azurerm_log_analytics_workspace" "app" { name = "law-${var.app_name_prefix}-${local.resource_suffix}" location = azurerm_resource_group.app.location ...

Azure Kubernetes Service (AKS) cluster deployment with Terraform

This blog post will guide the issues encountered while deploying an Azure Kubernetes Service (AKS) cluster and Azure Container Registry (ACR) with Terraform. The examples use PowerShell and Azure CLI. Replace placeholder values with your own; do not publish subscription IDs, credentials, kubeconfigs, or personal account information in a blog post. Troubleshooting an AKS deployment with Terraform Troubleshooting an AKS deployment with Terraform Lab guide covering environment selection, prerequisites, Azure CLI checks, deployment validation, common errors, and best practices. On this page Using Bash instead of PowerShell What this lab deploys Select an environment Prerequisites Tools Azure identity and permissions Terraform inputs and state Pre-deployment checks Confirm the selected subscription and region Check supported AKS versions Check VM size availability and quota Check resource provider registration Validate and deploy Issues encountered and res...